import { request } from '@boeyo/portal';

/**
 * 获取机器码
 */
export const fetchMachineCode = () => {
  return request({
    url: 'license/machineCode',
  });
};

/**
 * 上传授权文件
 */
export const updateLicense = (data) => {
  return request({
    url: 'license/upload',
    method: 'post',
    data,
    skipError: true,
  });
};
